package com.toonyoo.eurekafeign.apis.hystrix;

import com.toonyoo.eurekafeign.apis.HelloInterface;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class HelloInterfaceHystrix implements HelloInterface{

    @Value("${server.port}")
    private String port;

    @Override
    public String sayHiFromClientOne(String name) {
        return "sorry " + name + ", Client["+port+"] fail!";
    }
}
